package com.lxit.video.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lxit.video.bean.VideoType;
import com.lxit.video.dao.VideoTypeRepository;
import com.lxit.video.service.VideoTypeService;

@Service
public class VideoTypeServiceImpl implements VideoTypeService {
	
	@Autowired
	private VideoTypeRepository videoTypeRepository;

	@Override
	public VideoType findByVoTypeId(Integer voTypeId) {
		return videoTypeRepository.findByVoTypeId(voTypeId);
	}

	@Override
	public List<VideoType> findAll() {
		return videoTypeRepository.findAll();
	}
}
